.class Lcom/esfile/screen/recorder/media/util/w$a;
.super Landroid/os/Handler;
.source "Poller.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/esfile/screen/recorder/media/util/w;->a(Landroid/os/Looper;)Landroid/os/Handler;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/media/util/w;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/media/util/w;Landroid/os/Looper;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/util/w$a;->a:Lcom/esfile/screen/recorder/media/util/w;

    invoke-direct {p0, p2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    .line 1
    iget v0, p1, Landroid/os/Message;->what:I

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/media/util/w$a;->a:Lcom/esfile/screen/recorder/media/util/w;

    invoke-static {v1}, Lcom/esfile/screen/recorder/media/util/w;->a(Lcom/esfile/screen/recorder/media/util/w;)Landroid/util/SparseArray;

    move-result-object v1

    monitor-enter v1

    .line 3
    :try_start_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/media/util/w$a;->a:Lcom/esfile/screen/recorder/media/util/w;

    invoke-static {v2}, Lcom/esfile/screen/recorder/media/util/w;->a(Lcom/esfile/screen/recorder/media/util/w;)Landroid/util/SparseArray;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/media/util/w$b;

    .line 4
    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v2, :cond_0

    return-void

    .line 5
    :cond_0
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 6
    invoke-virtual {v2, p1}, Lcom/esfile/screen/recorder/media/util/w$b;->a(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 7
    invoke-virtual {p0, v0}, Landroid/os/Handler;->removeMessages(I)V

    goto :goto_0

    .line 8
    :cond_1
    invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;

    move-result-object v1

    .line 9
    iput v0, v1, Landroid/os/Message;->what:I

    .line 10
    iput-object p1, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 11
    invoke-static {v2}, Lcom/esfile/screen/recorder/media/util/w$b;->a(Lcom/esfile/screen/recorder/media/util/w$b;)J

    move-result-wide v2

    invoke-virtual {p0, v1, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :goto_0
    return-void

    :catchall_0
    move-exception p1

    .line 12
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1
.end method
